Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev-server - display fullscreen Cockpit login form #840

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

lslezak
Copy link
Contributor

@lslezak lslezak commented Nov 2, 2023

Problem

  • When running the local development server the login form is not displayed in full screen, it is limited to the usual Agama main area.
  • The problem is that in production the Cockpit server returns the login page instead of the Agama page when user is not authenticated.
  • But in the development server we display the login page inside Agama (in an iframe), with the Agama main page styling applied

devserver_login_orig

Solution

  • Remove the offending CSS property from the root node

devserver_login_fixed

Notes

It is a bit hack, but as this is applied only in the development server (not in production) I think it is acceptable. Otherwise we would need to change the HTML structure and CSS quite a lot...

Copy link
Contributor

@dgdavid dgdavid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why do you want this change. I mean, I see no problem on having the Cockpit login form wrapped into the Agama layout at all. It's perfectly usable.

That said, I have no problem of going ahead with the proposed change as long as it only applies when working in the development mode, but I'd like to know the rationale of it.

@dgdavid
Copy link
Contributor

dgdavid commented Nov 2, 2023

but I'd like to know the rationale of it.

Ah, I guess if for having a similar experience than in production.

@lslezak
Copy link
Contributor Author

lslezak commented Nov 2, 2023

Yes, the reason is to have the very same look as in production. It's a bit confusing when you are presenting a demo using the development server...

@lslezak lslezak merged commit 2fd181b into master Nov 2, 2023
10 checks passed
@lslezak lslezak deleted the devel_login_style_fix branch November 2, 2023 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants